]> dgit.raspbian.org Git - gnome-shell.git/commit
layout: Use promise to ensure primary monitor
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 27 Nov 2025 21:47:46 +0000 (22:47 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 1 Dec 2025 18:39:44 +0000 (18:39 +0000)
commit592a68575148985edbc76709085da404846ce444
tree0ee4287061f944f445e41245b0442f743b93196c
parent3a1aee859e28b4bcad21f6b17c8722eb5cee2f80
layout: Use promise to ensure primary monitor

Both loading the system background and setting up the startup animation
depends on having a primary monitor, so we wait for the monitor to
appear if necessary.

Currently this is done differently in each case, once by having a hook
to recall a method when the monitor appears, and once by re-running an
idle handler.

Replace this with an async `_ensurePrimaryMonitor()` method that we can
use to await the primary monitor where needed.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3988>
js/ui/layout.js